Elementor\Modules\Ai\Module D

Total Complexity 144
Dependencies 10
Dependents 1
Total lines 1,137
Lines of code 868
Logical lines of code 396
Comment lines 5
Methods 41
Properties 0

Methods 41

Method Rating Maintainability Complexity Lines of code
__construct()
A
34 8 103
ajax_ai_generate_layout()
A
41 9 60
enqueue_main_script()
A
41 8 58
ajax_ai_get_image_to_image_mask()
A
49 7 32
prepare_generate_layout_context()
S
42 4 58
ajax_ai_upload_image()
S
54 6 20
ajax_ai_get_image_to_image()
S
51 5 26
ajax_ai_get_image_to_image_replace_background()
S
52 5 25
ajax_ai_get_image_to_image_upscale()
S
52 5 25
ajax_ai_get_custom_css()
S
52 5 25
ajax_ai_toggle_favorite_history_item()
S
58 5 15
ajax_ai_delete_history_item()
S
58 5 15
ajax_ai_get_edit_text()
S
53 4 22
ajax_ai_get_custom_code()
S
54 4 21
ajax_ai_get_image_to_image_remove_background()
S
54 4 21
ajax_ai_get_history()
S
55 4 18
enqueue_ai_media_library()
S
51 3 30
ajax_ai_get_image_to_image_outpainting()
S
53 3 24
ajax_ai_get_layout_prompt_enhancer()
S
54 3 21
ajax_ai_get_featured_image()
S
55 3 19
ajax_ai_get_text_to_image()
S
55 3 19
ajax_ai_get_completion_text()
S
55 3 19
ajax_ai_get_image_prompt_enhancer()
S
56 3 18
ajax_ai_get_excerpt()
S
56 3 18
upload_image()
S
58 3 15
ajax_ai_set_status_feedback()
S
63 3 11
remove_temporary_containers()
S
62 3 11
ajax_ai_get_user_information()
S
56 2 19
verify_upload_permissions()
S
68 3 7
verify_permissions()
S
66 3 9
enqueue_layout_script()
S
57 1 20
throw_on_error()
S
67 2 8
get_request_ids()
S
71 2 6
get_request_context()
S
71 2 6
ajax_ai_get_remote_config()
S
69 2 7
register_layout_experiment()
S
62 1 12
ajax_ai_set_get_started()
S
69 1 7
get_ai_app()
S
80 1 3
get_ai_connect_url()
S
65 1 9
is_layout_active()
S
80 1 3
get_name()
S
82 1 3